<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>传值A页面</title>
    <script src="https://cdn.bootcss.com/vue/2.6.5/vue.js"></script>
    <script src="https://cdn.bootcss.com/vue-router/3.0.2/vue-router.js"></script>
</head>
<body>
    <div id="app">
        <select v-model.number="value">
            <option value="1">神经</option>
            <option value="2">脑科</option>
            <option value="3">外科</option>
        </select>
        选中的为：{{value}}
        <a href="javascript:void(0)"  @click="goto">跳转到B页面</a>
    </div>
</body>
<script>
new Vue({
    el:'#app',
    data:{
        value:''
    },
    methods: {
         goto(){
             console.log(this.value)
             var a=this.value
             console.log("./two.html?id="+a)
           window.location.href="./two.html?id="+a
           //window.location.href="./two.html?id=1"
        } 
    },
})

</script>
</html>